package com.dldata.devtools30.repository.api;



import com.dldata.devtools30.entity.DevtFunctionListEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by ai on 2017/1/11.
 */
@Repository
public interface DevtFunctionListEntityDao
        extends com.dldata.devtools30.repository.BaseRepository<DevtFunctionListEntity,String>,
        JpaSpecificationExecutor<DevtFunctionListEntity> {
    
    @Query("select d from DevtFunctionListEntity d where code like ?1 or name like ?1  ")
    public List<DevtFunctionListEntity> getFunctionList(String searchvalue);
    
    @Query("select d from DevtFunctionListEntity d where (code like ?1 or name like ?1) and delflag=?2  ")
    public List<DevtFunctionListEntity> getFunctionList(String searchvalue,Integer deleteflag);
}
